<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Item extends Model
{

    protected $fillable = ['name', 'status'];

    protected $dates = [];

    public static $rules = [
        // Validation rules
        'name' => 'required|max:191',
        'status' => 'required|integer',
    ];
    public static $message = [
        'name.required' => '请输入产品名称',
        'name.max' => '产品名称最长 :max 个字符',
        'status.required' => '请输入产品状态',
        'status.integer' => '产品状态必须是正整数',
    ];
}
